<template>
	<div>
		<el-card class="!border-none pt-4" shadow="never">
			<el-form class="ls-form el-set-form" :model="formData" inline>
				<el-form-item label="报价编码">
					<el-input  placeholder="请输入" v-model="formData.Number" clearable />
				</el-form-item>
				<el-form-item>
					<el-button class="main-color1 w-[76px]" >重置</el-button>
					<el-button class="w-[76px]" type="primary" color="#0054A6">查询</el-button>
				</el-form-item>
			</el-form>
		</el-card>
		<el-card class="!border-none mt-[20px]" shadow="never">
			<el-table class="mt-[20px]" size="large" :data="lists"
				:header-cell-style="{'background':'#0054A6','color':'#FFB400','line-height':'52px','padding':'14px 0'}"
				:cell-style="{'color':'#0054A6','padding':'20px 0'}">
				<el-table-column label="报价编码" prop="scene_name" align="center" width="200">
					<template #default="{ row }">
						<span>01332380</span>
					</template>
				</el-table-column>
				<el-table-column label="货代" prop="上海AAAA有限公司" align="center" width="200">
					<template #default="{ row }">
						<span>客户公司名称</span>
					</template>
				</el-table-column>
				<el-table-column label="报价时间" prop="上海AAAA有限公司" align="center" width="200">
					<template #default="{ row }">
						<span>2023-10-12 11:20:20</span>
					</template>
				</el-table-column>
				<el-table-column label="默认报价" prop="上海AAAA有限公司" align="center" width="200">
					<template #default="{ row }">
						<span>默认</span>
					</template>
				</el-table-column>
				<el-table-column label="类型" prop="上海AAAA有限公司" align="center" width="200">
					<template #default="{ row }">
						<span>砍价退单</span>
					</template>
				</el-table-column>
				<el-table-column label="备注" prop="上海AAAA有限公司" align="center" width="200">
					<template #default="{ row }">
						<span>2023-10-12 11:20:20</span>
					</template>
				</el-table-column>
				<el-table-column label="操作" fixed="right" align="center">
					<template #default="{ row }">
						<el-button type="primary" link >
							<router-link :to="{
							        path: getRoutePath('InquiryManagement.InquiryManagement/forwarderQuotationDetail'),
							        query: {
							            id: '1'
							        }
							    }">
								<span class="main-color1">报价详情</span>
							</router-link>
						</el-button>
						<el-button type="primary" link >
							<span class="main-color1">修改审核</span>
						</el-button>
						<el-button type="primary" link >
							<span class="main-color1">确认订单</span>
						</el-button>
						<el-button type="primary" link @click="chargebackShow=true">
							<span class="main-color1">错误退单</span>
						</el-button>
						<el-button type="primary" link @click="BargainingShow=true">
							<span class="main-color1">砍价退单</span>
						</el-button>
					</template>
				</el-table-column>
			</el-table>
		</el-card>
		<!-- 错误退单 -->
		<el-dialog v-model="chargebackShow" title="错误退单" width="20%">
		   <div>
			  <div class="main-color v-flex v-col-top">
			  	<span>描述：</span>
			  	<el-input type="textarea" :rows="3" class="flex-1 ml-[10px]" placeholder="请输入"></el-input>
			  </div>
			  <div class="text-center mt-[30px] pb-[20px]">
			  	<el-button class="w-[76px] h-[36px]" color="#0054A6" type="primary">确认</el-button>
			  </div>
		   </div>
		</el-dialog>
		<!-- 砍价退单 -->
		<el-dialog v-model="BargainingShow" title="砍价退单" width="20%">
		   <div>
			  <div class="main-color v-flex v-col-top">
			  	<span>描述：</span>
			  	<el-input type="textarea" :rows="3" class="flex-1 ml-[10px]" placeholder="请输入"></el-input>
			  </div>
			  <div class="text-center mt-[30px] pb-[20px]">
			  	<el-button class="w-[76px] h-[36px]" color="#0054A6" type="primary">确认</el-button>
			  </div>
		   </div>
		</el-dialog>
	</div>
</template>

<script lang="ts" setup>
	import { getRoutePath } from '@/router'
	const formData = reactive({
		Number: '',
		type: '',
	})
	const lists = ref<Array<any>>([
		{}, {}, {}
	])
	const chargebackShow = ref(false)
	const BargainingShow = ref(false)
</script>
<style lang="scss" scoped>
	.el-set-form:deep() .el-form-item__label{
		color: var(--el-text-color-main);
		height: 36px;
		line-height: 36px;
	}
	.el-set-form:deep() .el-input__inner{
		height: 36px;
	}
	.el-set-form:deep() .el-input__inner::placeholder {
		color: var(--el-text-color-main);
	}
	

	.el-col {
		border-radius: 4px;
	}

	.grid-content {
		border-radius: 4px;
		min-height: 36px;
	}

	.l-80 {
		line-height: 80px;
	}

	.border-color-eee {
		border-color: #EEEEEE;
	}
	:deep() .el-dialog__title{
		color: var(--el-text-color-main);
	}
</style>